//
//  UIButton+Extension.swift
//  
//
//  Created by chenxinju on 16/5/7.
//
//

import UIKit

extension UIButton {
    
    
 convenience init(title:String,image:String,Color:UIColor,size:CGFloat){

     self.init()
    
     self.setTitle(title, forState: UIControlState.Normal)
    
     self.setImage(UIImage(named: image), forState: UIControlState.Normal)
    
     self.setTitleColor(Color, forState: UIControlState.Normal)
    
      //设置button的字体
    self.titleLabel?.font = UIFont.systemFontOfSize(size)
    
    
    }
}